package Question;

import java.util.Date;

/**
 * 该类为cartoondb数据库中user表的实体类
 *
 * @author Mc.Chai
 * @program: JavaWeb
 * @create 2021-12-14-14:50 14:50
 */
public class User {
    private Integer id;
    private String username;
    private String userpwd;
    private String truename;
    private Integer age;
    private Date regdate;

    public User() {
    }

    public User(Integer id, String username, String userpwd, String truename, Integer age, Date regdate) {
        this.id = id;
        this.username = username;
        this.userpwd = userpwd;
        this.truename = truename;
        this.age = age;
        this.regdate = regdate;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpwd() {
        return userpwd;
    }

    public void setUserpwd(String userpwd) {
        this.userpwd = userpwd;
    }

    public String getTruename() {
        return truename;
    }

    public void setTruename(String truename) {
        this.truename = truename;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", userpwd='" + userpwd + '\'' +
                ", truename='" + truename + '\'' +
                ", age=" + age +
                ", regdate=" + regdate +
                '}';
    }
}
